objects = main.o gs-theme-window.o NewsWidget.o CL_News_pool.o CL_RSS_Quelle.o helpers.o \
          inet.o pugixml.o parsing.o
gtk+cflags = `pkg-config --cflags gtk+-2.0 gtkmm-2.4`
gtk+libs = `pkg-config --libs gtk+-2.0 gtkmm-2.4` -L/usr/lib -lPocoFoundation -lboost_regex \
            -lPocoNet

screensaver : $(objects)
	gcc $(gtk+cflags) -o screensaver $(objects) $(gtk+libs)

main.o : main.cpp
	g++ -c $(gtk+cflags) main.cpp

gs-theme-window.o : gs-theme-window.c gs-theme-window.h config.h
	gcc -c $(gtk+cflags) gs-theme-window.c

NewsWidget.o : NewsWidget.cpp NewsWidget.h
	g++ -c $(gtk+cflags) NewsWidget.cpp

parsing.o : parsing.cpp CL_News_pool.h CL_News.h pugixml.hpp

clean :
	rm $(objects) screensaver

